package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("group_purchase_seat_maps")
public class GroupPurchaseSeatMapEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String sectionName;

    private String sectionCode;

    private String seatCode;

    private String seatId;

    private String seat;

    private String row;

    private String col;

    private Long userId;

    private Long scheduleId;

    private Long cinemaId;

    private Long tenantId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic(value = "null", delval = "now()")
    @TableField(select = false)
    private LocalDateTime deletedAt;
}